function getSum(n) {
    let num = 1;
    for (let i = 1; i <= n; i++) {
        num = num * i
    }
    return num
}


// 暴露
/* module.exports = {
    getSum
} */

module.exports = getSum

// exports = getSum